/**
 * @description 全局自定义插件
 */
import MainLayout from './MainLayout.vue'
import PageLayout from './PageLayout.vue'
import BlankLayout from './BlankLayout.vue'
const plugins = function (VC) {
    VC.component('MainLayout', MainLayout)
    VC.component('PageLayout', PageLayout)
    VC.component('BlankLayout', BlankLayout)
    // 注册全局过滤器
    VC.filter('typeFilter', function (val, types) {
        let dict = types.find(it => it.code === val)
        if (!dict) return val
        return dict.name
    })

}
export default plugins